package com.yuzhou.service.impl;

import com.yuzhou.dao.UserDao;
import com.yuzhou.domain.User;
import com.yuzhou.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User findByOpenId(String openId) {
        return userDao.findByOpenId(openId);
    }

    @Override
    public void add(User user) {
        userDao.add(user);
    }

    @Override
    public void updateTopScore(User user) {
        userDao.updateTopScore(user);
    }
}
